import React, { FC } from 'react';
import { View, Text } from '@tarojs/components';
import { styled } from 'linaria/react';
import { useClassName } from '@/utils/index';
export interface IProps extends ICompProps {}
Title.defaultProps = {} as Partial<IProps>;
function Title(props: IProps) {
    const { className, style, children } = props;
    const localClassName = useClassName('Title', className);
    return (
        <RootView className={localClassName} style={style}>
            <View className="text">{children}</View>
        </RootView>
    );
}
export default React.memo(Title as FC<IProps>);
const RootView = styled(View)`
    &.Title {
        padding-left: 16px;
        .text {
            font-size: 36px;
            font-weight: 600;
            color: #333333;
            padding: 30px 0;
        }
    }
`;
